gtkapplication: Remove deprecated API
authorTimm Bäder <mail@baedert.org>
Fri, 14 Oct 2016 20:07:36 +0000 (22:07 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Oct 2016 22:29:19 +0000 (00:29 +0200)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkapplication.c
gtk/gtkapplication.h

index 356391e80ad01c421e6934a4d76bd5a00f00ab7b..aa726c76902e6b3b56117952aefd7e645612fc6b 100644 (file)
@@ -6820,9 +6820,6 @@ gtk_application_get_menubar
 gtk_application_set_menubar
 gtk_application_get_menu_by_id
 
-gtk_application_add_accelerator
-gtk_application_remove_accelerator
-
 gtk_application_list_action_descriptions
 gtk_application_get_accels_for_action
 gtk_application_set_accels_for_action
index d18ff2bdef97bff872e6c77e3bf677e9d8f5720d..ea3eba30cd9e05865aaff6aecdb8b6155536e43a 100644 (file)
@@ -883,83 +883,6 @@ gtk_application_update_accels (GtkApplication *application)
     _gtk_window_notify_keys_changed (l->data);
 }
 
-/**
- * gtk_application_add_accelerator:
- * @application: a #GtkApplication
- * @accelerator: accelerator string
- * @action_name: the name of the action to activate
- * @parameter: (allow-none): parameter to pass when activating the action,
- *   or %NULL if the action does not accept an activation parameter
- *
- * Installs an accelerator that will cause the named action
- * to be activated when the key combination specificed by @accelerator
- * is pressed.
- *
- * @accelerator must be a string that can be parsed by gtk_accelerator_parse(),
- * e.g. "<Primary>q" or “<Control><Alt>p”.
- *
- * @action_name must be the name of an action as it would be used
- * in the app menu, i.e. actions that have been added to the application
- * are referred to with an “app.” prefix, and window-specific actions
- * with a “win.” prefix.
- *
- * GtkApplication also extracts accelerators out of “accel” attributes
- * in the #GMenuModels passed to gtk_application_set_app_menu() and
- * gtk_application_set_menubar(), which is usually more convenient
- * than calling this function for each accelerator.
- *
- * Since: 3.4
- *
- * Deprecated: 3.14: Use gtk_application_set_accels_for_action() instead
- */
-void
-gtk_application_add_accelerator (GtkApplication *application,
-                                 const gchar    *accelerator,
-                                 const gchar    *action_name,
-                                 GVariant       *parameter)
-{
-  const gchar *accelerators[2] = { accelerator, NULL };
-  gchar *detailed_action_name;
-
-  g_return_if_fail (GTK_IS_APPLICATION (application));
-  g_return_if_fail (accelerator != NULL);
-  g_return_if_fail (action_name != NULL);
-
-  detailed_action_name = g_action_print_detailed_name (action_name, parameter);
-  gtk_application_set_accels_for_action (application, detailed_action_name, accelerators);
-  g_free (detailed_action_name);
-}
-
-/**
- * gtk_application_remove_accelerator:
- * @application: a #GtkApplication
- * @action_name: the name of the action to activate
- * @parameter: (allow-none): parameter to pass when activating the action,
- *   or %NULL if the action does not accept an activation parameter
- *
- * Removes an accelerator that has been previously added
- * with gtk_application_add_accelerator().
- *
- * Since: 3.4
- *
- * Deprecated: 3.14: Use gtk_application_set_accels_for_action() instead
- */
-void
-gtk_application_remove_accelerator (GtkApplication *application,
-                                    const gchar    *action_name,
-                                    GVariant       *parameter)
-{
-  const gchar *accelerators[1] = { NULL };
-  gchar *detailed_action_name;
-
-  g_return_if_fail (GTK_IS_APPLICATION (application));
-  g_return_if_fail (action_name != NULL);
-
-  detailed_action_name = g_action_print_detailed_name (action_name, parameter);
-  gtk_application_set_accels_for_action (application, detailed_action_name, accelerators);
-  g_free (detailed_action_name);
-}
-
 /**
  * gtk_application_prefers_app_menu:
  * @application: a #GtkApplication
index ad6ac061ba983d43e581f097b5cb323742012251..3b7cb1a3ee5da819c3785bcb7e9641b946656d3d 100644 (file)
@@ -101,17 +101,6 @@ GDK_AVAILABLE_IN_3_4
 void             gtk_application_set_menubar   (GtkApplication    *application,
                                                 GMenuModel        *menubar);
 
-GDK_DEPRECATED_IN_3_14_FOR(gtk_application_set_accels_for_action)
-void             gtk_application_add_accelerator    (GtkApplication  *application,
-                                                     const gchar     *accelerator,
-                                                     const gchar     *action_name,
-                                                     GVariant        *parameter);
-
-GDK_DEPRECATED_IN_3_14_FOR(gtk_application_set_accels_for_action)
-void             gtk_application_remove_accelerator (GtkApplication *application,
-                                                     const gchar    *action_name,
-                                                     GVariant       *parameter);
-
 typedef enum
 {
   GTK_APPLICATION_INHIBIT_LOGOUT  = (1 << 0),